package com.xzx.shop_front_api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * 商品实体类
 * author:xfsong
 */
@TableName("shop_goods")
public class Goods {
    @TableId(type = IdType.AUTO)
    private Long id;
    @JsonProperty("goods_name")
    private String goodsName;
    @JsonProperty("first_cate_id")
    private int firstCateId;
    @JsonProperty("second_cate_id")
    private int secondCateId;
    @JsonProperty("third_cate_id")
    private int thirdCateId;
    @JsonProperty("sale_price")
    private double salePrice;
    @JsonProperty("cost_price")
    private double costPrice;
    @JsonProperty("member_price")
    private double memberPrice;

    @JsonProperty("send_address")
    private String sendAddress;
    @JsonProperty("brand_id")
    private int brandId;
    @JsonProperty("product_address")
    private String productAddress;
    @JsonProperty("description")
    private String description;
    @JsonProperty("stock")
    private int stock;

    @JsonProperty("is_recommand")
    private int isRecommand;
    @JsonProperty("sales_number")
    private int salesNumber;
    @JsonProperty("collect_number")
    private int collectNumber;
    @JsonProperty("status")
    private int status;
    @JsonProperty("createdTime")
    private String created_time;

    public double getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(double costPrice) {
        this.costPrice = costPrice;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getFirstCateId() {
        return firstCateId;
    }

    public void setFirstCateId(int firstCateId) {
        this.firstCateId = firstCateId;
    }

    public int getThirdCateId() {
        return thirdCateId;
    }

    public void setThirdCateId(int thirdCateId) {
        this.thirdCateId = thirdCateId;
    }

    public double getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(double salePrice) {
        this.salePrice = salePrice;
    }

    public double getMemberPrice() {
        return memberPrice;
    }

    public void setMemberPrice(double memberPrice) {
        this.memberPrice = memberPrice;
    }

    public String getSendAddress() {
        return sendAddress;
    }

    public void setSendAddress(String sendAddress) {
        this.sendAddress = sendAddress;
    }

    public int getBrandId() {
        return brandId;
    }

    public void setBrandId(int brandId) {
        this.brandId = brandId;
    }

    public String getProductAddress() {
        return productAddress;
    }

    public void setProductAddress(String productAddress) {
        this.productAddress = productAddress;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getIsRecommand() {
        return isRecommand;
    }

    public void setIsRecommand(int isRecommand) {
        this.isRecommand = isRecommand;
    }

    public int getSalesNumber() {
        return salesNumber;
    }

    public void setSalesNumber(int salesNumber) {
        this.salesNumber = salesNumber;
    }

    public int getCollectNumber() {
        return collectNumber;
    }

    public void setCollectNumber(int collectNumber) {
        this.collectNumber = collectNumber;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }


    public int getSecondCateId() {
        return secondCateId;
    }

    public void setSecondCateId(int secondCateId) {
        this.secondCateId = secondCateId;
    }

    public String getCreated_time() {
        return created_time;
    }

    public void setCreated_time(String created_time) {
        this.created_time = created_time;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", goodsName='" + goodsName + '\'' +
                ", firstCateId=" + firstCateId +
                ", secondCateId=" + secondCateId +
                ", thirdCateId=" + thirdCateId +
                ", salePrice=" + salePrice +
                ", costPrice=" + costPrice +
                ", memberPrice=" + memberPrice +
                ", sendAddress='" + sendAddress + '\'' +
                ", brandId=" + brandId +
                ", productAddress='" + productAddress + '\'' +
                ", description='" + description + '\'' +
                ", stock=" + stock +
                ", isRecommand=" + isRecommand +
                ", salesNumber=" + salesNumber +
                ", collectNumber=" + collectNumber +
                ", status=" + status +
                ", created_time=" + created_time +
                '}';
    }
}
